package project;

/*import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Scanner;*/
import org.junit.Test;


public class MinimaxTest {
	@Test
	public void test() {
		/*ArrayList<Move> moves = new ArrayList <Move> ();
		
		Scanner in = new Scanner(System.in);
		String input;
		String[] splitted;*/
		GameState game;
		
		/*System.out.printf("Enter Initial Moves: ");
		
		input = in.nextLine();
		splitted = input.split(" ");
		for (int i = 0; i < splitted.length; i++) {
			moves.add(Move.newMove(splitted[i], i%2));
		}
		game = new GameState(moves);*/
		
		game = new GameState();
		
		System.out.print(game);
		Minimax.setDepth(5);
		Minimax.setTimeout(3000);
		Move move = Minimax.bestMove(game, game.currPlayer);
		game.applyMove(move);
		
		while (true) {
			System.out.print(game);

			move = Minimax.bestMove(game, game.currPlayer);
			game.applyMove(move);
			System.out.print(game);
			
			move = Minimax.bestMove(game, game.currPlayer);
			game.applyMove(move);
		}
	}
}
